<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="struts" uri="/struts-tags" %>
<html>
<head>
    <title>版块列表</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script language="javascript" src="${pageContext.request.contextPath}/OfficeAuto/script/jquery.js"></script>
    <script language="javascript" src="${pageContext.request.contextPath}/OfficeAuto/script/pageCommon.js"
            charset="utf-8"></script>
    <script language="javascript" src="${pageContext.request.contextPath}/OfficeAuto/script/PageUtils.js"
            charset="utf-8"></script>
    <link type="text/css" rel="stylesheet"
          href="${pageContext.request.contextPath}/OfficeAuto/style/blue/pageCommon.css"/>
    <script type="text/javascript">
    </script>
</head>
<body>

<div id="Title_bar">
    <div id="Title_bar_Head">
        <div id="Title_Head"></div>
        <div id="Title"><!--页面标题-->
            <img border="0" width="13" height="13"
                 src="${pageContext.request.contextPath}/OfficeAuto/style/images/title_arrow.gif"/> 版块管理
        </div>
        <div id="Title_End"></div>
    </div>
</div>

<div id="MainArea">
    <table cellspacing="0" cellpadding="0" class="TableStyle">

        <!-- 表头-->
        <thead>
        <tr align="CENTER" valign="MIDDLE" id="TableTitle">
            <td width="250px">版块名称</td>
            <td width="300px">版块说明</td>
            <td>相关操作</td>
        </tr>
        </thead>

        <!--显示数据列表-->
        <tbody id="TableData" class="dataContainer" datakey="forumList">
        <struts:iterator value="list" status="s">
            <tr class="TableDetail1 template">
                <td>${name}&nbsp;</td>
                <td>${description}&nbsp;</td>
                <td><struts:a onClick="return delConfirm()" href="forumManage_delete!delete.do?id=%{ id }">删除</struts:a>
                    <struts:a href="forumManage_edit!editUi.do?id=%{id}">修改</struts:a>
                    <struts:if test="#s.first">
                        上移
                    </struts:if>
                    <struts:else>
                        <struts:a href="forumManage_moveUp!moveUp.do?id=%{id}">上移</struts:a>
                    </struts:else>
                    <struts:if test="#s.last">
                        下移
                    </struts:if>
                    <struts:else>
                        <struts:a href="forumManage_moveDown!moveDown.do?id=%{id}">下移</struts:a>
                    </struts:else>
                    <struts:a href="forumManage_moveDown!moveTop.do?id=%{id}">置顶 </struts:a>
                </td>
            </tr>
        </struts:iterator>
        </tbody>
    </table>

    <!-- 其他功能超链接 -->
    <div id="TableTail">
        <div id="TableTail_inside">
            <struts:a href="forumManage_add!addUi.do"><img
                    src="${pageContext.request.contextPath}/OfficeAuto/style/images/createNew.png"/></struts:a>
        </div>
    </div>
</div>

<div class="Description">
    说明：<br/>
    1，显示的列表按其sortOrder值升序排列。<br/>
    2，可以通过上移与下移功能调整顺序。最上面的不能上移，最下面的不能下移。<br/>
    <%--包含分页信息--%>
    <%@include file="/OfficeAuto/BBS_Topic/page.jsp"%>
    <struts:form id="pageForm" action="orumManage_list!list.do" theme="simple">
        <struts:hidden name="id"></struts:hidden>
    </struts:form>
</div>

</body>
</html>
